<template>
    <div class="nav-bar">
        <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="onClickLeft" />
    </div>
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'


const route = useRoute()


const title: any = computed(() => route.meta.title)

// 点击左侧返回按钮，后退
const onClickLeft = () => history.back()
</script>

<style lang="less" scoped>

</style>
